package chances.wechat.controller;

import javax.servlet.http.HttpServletRequest;

import chances.wechat.utils.PathUtils;

public class WeixinPortalController {
    
    private String templatePath = "/template/wx_portal";

    public String getStbNo(HttpServletRequest request) {
        /*WeixinSession weixinSession = WeixinSession.getWeixinSession(request);
        if (weixinSession != null) {
            return weixinSession.getDeviceId();
        } else {
            return null;
        }*/
        return null;
    }

    public String getPage(String code) {
        return PathUtils.join(templatePath, code);
    }

    public String getTemplatePath() {
        return templatePath;
    }

    public void setTemplatePath(String templatePath) {
        this.templatePath = templatePath;
    }
}
